﻿<%@ Page Language="C#" MasterPageFile="~/ProductManager/ProductManage.Master" AutoEventWireup="true" CodeFile="EdiySuplierInfo.aspx.cs" Inherits="GoShopping.Web.ProductManager.AddSuplierInfo" Title="无标题页" %>
<%@ MasterType VirtualPath="ProductManage.Master" %> 
<%@ Register assembly="GoShopping.Components" namespace="BaseText" tagprefix="cc1" %>
<%@ Register assembly="ExtensionGridView" namespace="ExtensionControls" tagprefix="cc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <table class="style1">
    <tr>
        <td>
            <asp:Label ID="Label2" runat="server" Text="供货商姓名"></asp:Label>
        </td>
        <td>
            <cc1:ZLTextBox ID="zlTxtSupplier" runat="server"></cc1:ZLTextBox>
            <input id="hidSupplier" type="hidden" runat="server" />
            <input id="Hidden1" type="hidden" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="zlTxtSupplier" ErrorMessage="RequiredFieldValidator">不能为空!</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label3" runat="server" Text="公司全称"></asp:Label>
        </td>
        <td>
            <cc1:ZLTextBox ID="zlTxtFullCompName" runat="server"></cc1:ZLTextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="zlTxtFullCompName" ErrorMessage="RequiredFieldValidator">不能为空!</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label4" runat="server" Text="电话"></asp:Label>
        </td>
        <td>
            <cc1:ZLTextBox ID="zlTxtPhone" runat="server"></cc1:ZLTextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="zlTxtPhone" ErrorMessage="RequiredFieldValidator">不能为空!</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label5" runat="server" Text="地址"></asp:Label>
        </td>
        <td>
            <cc1:ZLTextBox ID="zlTxtAddress" runat="server"></cc1:ZLTextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ControlToValidate="zlTxtAddress" ErrorMessage="RequiredFieldValidator">不能为空!</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label6" runat="server" Text="备注"></asp:Label>
        </td>
        <td>
            <cc1:ZLTextBox ID="zlTxtRemark" runat="server" TextMode="MultiLine"></cc1:ZLTextBox>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Button ID="btnSave" runat="server" Text="保存" onclick="btnSave_Click" />
            <asp:Button ID="btnEdit" runat="server" onclick="btnEdit_Click" Text="修改" />
            <asp:Button ID="btnClean" runat="server" onclick="btnClean_Click" Text="清除" 
                CausesValidation="False" />
        </td>
        <td>
            &nbsp;</td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:GridView ID="extGVSuplier" runat="server" 
                AutoGenerateColumns="False" PagerText="当前第{0}页,共{1}页{2}条记录" 
                RecordCount="-1" onrowcommand="extGVSuplier_RowCommand" SortAscImageUrl="" 
                SortDescImageUrl="" AllowPaging="True" 
                onpageindexchanging="extGVSuplier_PageIndexChanging" Width="500px" 
                EmptyDataText="没有供应商信息!">
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:CheckBox ID="cbAll" runat="server" 
                                oncheckedchanged="cbAll_CheckedChanged" AutoPostBack="True" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="cbSingle" runat="server" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="编辑">
                        <HeaderTemplate>
                            <asp:Label ID="Label17" runat="server" Text="编辑"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Button ID="Button4" runat="server" Text="编辑" 
                                CommandArgument='<%# Eval("ID") %>' CommandName="psEdit" 
                                CausesValidation="False" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="ID" Visible="False">
                        <HeaderTemplate>
                            <asp:Label ID="Label19" runat="server" Text="ID"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="姓名">
                        <HeaderTemplate>
                            <asp:Label ID="Label7" runat="server" Text="供货商名称"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblName" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="公司全称">
                        <HeaderTemplate>
                            <asp:Label ID="Label10" runat="server" Text="公司全称"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblComFullName" runat="server" 
                                Text='<%# Eval("CompanyFullName") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="电话">
                        <HeaderTemplate>
                            <asp:Label ID="Label11" runat="server" Text="联系电话"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblPhone" runat="server" Text='<%# Eval("Telephone") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="地址">
                        <HeaderTemplate>
                            <asp:Label ID="Label13" runat="server" Text="联系地址"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblAddress" runat="server" Text='<%# Eval("Address") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="备注">
                        <HeaderTemplate>
                            <asp:Label ID="Label15" runat="server" Text="备注"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lblRemark" runat="server" Text='<%# Eval("Remark") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle HorizontalAlign="Center" />
            </asp:GridView>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Button ID="btnDel" runat="server" Text="删除" onclick="btnDel_Click" 
                style="height: 26px" CausesValidation="False" />
        </td>
        <td>
            &nbsp;</td>
    </tr>
</table>
    
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
